package com.aizuda.boot.modules.business.contract.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "字段配置响应")
public class FieldConfigRespDTO {

    @Schema(description = "下拉单选字段配置列表")
    private List<DropdownFieldConfig> dropdownFields;

    @Data
    @Schema(description = "下拉单选字段配置")
    public static class DropdownFieldConfig {
        @Schema(description = "字段ID")
        private Long fieldId;

        @Schema(description = "字段名称")
        private String fieldName;

        @Schema(description = "字段选项列表")
        private List<FieldOption> options;
    }

    @Data
    @Schema(description = "字段选项")
    public static class FieldOption {
        @Schema(description = "选项代码")
        private String code;

        @Schema(description = "选项名称")
        private String name;
    }
} 